package com.lq.demo.demo.netty_complete.util;

import java.util.Random;
import java.util.UUID;

public class IDUtil {
    private final static Random random = new Random();

    public static String randomId() {
        long timeMillis = System.currentTimeMillis();
        int anInt = random.nextInt(50);
        long id = timeMillis + anInt;
        return String.valueOf(id);
    }
}
